<template>
  <div class="app-container">
    <el-tabs v-model="activeName" type="card" @tab-click="handleClick">
      <el-tab-pane label="曾志龙" name="zengzhilong">
        <zengzhilong-home />
      </el-tab-pane>
      <el-tab-pane label="洪炎生" name="hongyansheng">
        <hongyansheng-home />
      </el-tab-pane>
      <el-tab-pane label="高竟鸿" name="gaojinghong">
        <gaojinghong-home />
      </el-tab-pane>
      <el-tab-pane label="张奕韬" name="zhangyitao">
        <zhangyitao-home />
      </el-tab-pane>
      <el-tab-pane label="黄佳旭" name="huangjiaxu">
        <huangjiaxu-home />
      </el-tab-pane>
    </el-tabs>
  </div>
</template>

<script>
import ZengzhilongHome from './components/ZengzhilongHome'
import HongyanshengHome from './components/HongyanshengHome'
import GaojinghongHome from './components/GaojinghongHome'
import ZhangyitaoHome from './components/ZhangyitaoHome'
import HuangjiaxuHome from './components/HuangjiaxuHome'

export default {
  name: 'StudentsHome',
  components: {
    ZengzhilongHome,
    HongyanshengHome,
    GaojinghongHome,
    ZhangyitaoHome,
    HuangjiaxuHome
  },
  data() {
    return {
      activeName: 'zengzhilong'
    }
  },
  methods: {
    handleClick(tab, event) {
      console.log(tab, event)
    }
  }
}
</script>

<style scoped>
.app-container {
  padding: 20px;
}
</style>